package com.aaa.day1109.demo01;

/**
 * @author ${崔灿}
 * @date 2022/11/09 09:39
 **/

public class FCZJ implements Chuzu{
    //被代理的对象
    private FangDong target;

    public FCZJ(FangDong target) {
        this.target = target;
    }

    @Override
    public void chuzu() {
        info1();
        watch();
        target.chuzu();
    }

    @Override
    public void mai() {

    }

    public void watch(){
        System.out.println("看房子");
    }

    public void info1() {
        System.out.println("房源介绍");
    }
}
